package Exercise;

public class EX01_Q16 {

	
	public static void main(String[] args) {
       
	int n =1; int k =2; int r =n;	
    if(k < n) r = k;
    
    System.out.println(r);
    //1
    
    if(n < k) r = k; else r = k + n;
    System.out.println(r);
    //2
    
    if(r < k) n = r; else k = n;
    System.out.println(r);
    //2
    
    if(r < n + k) r = 2 * n; else k = 2 * r;
    System.out.println(r);
    //2
}
}